<include file="Public:headersmall"/>
<style>
.center{width:1000px;margin:0 auto;margin-top:10px}
.left{width:160px;border:1px solid #dddddd;float:left;}
.main{width:830px;float:right;}
.title2{display:block;background:#317ee7;color:#fff;text-align:left;font-size:16px;height:25px;line-height:25px}
.left dl{display:block;background:#fff;font-size:13px;height:25px;line-height:25px}
.help{margin-top:5px}

.history{width:820px;float:right}
.ht01{border-left-width:1px;border-right-width:1px;border-top-style:solid;border-top-width:1px;border-bottom-style:solid; border-bottom-width:1px;height:40px;font-size:14px;font-weight:bold;background:#e8eff7;border-color:#dddddd}
.ht02{border-left-width:1px; border-right-width:1px;border-top-width:1px;border-bottom-style:solid; border-bottom-width:1px;height:30px;border-color:#dddddd}
#list:hover{background:#e8eff7}

.index_page{width:840px;margin:0 auto;float:right;margin-top:10px;color:#0066CC;cursor:pointer;}
.page{height:20px;width:20px;border:1px solid #FF5500; text-align:center;vertical-align:middle;display:inline-block;color:#0066CC;cursor:pointer;}
.page:hover{color:#0066CC}
.page_current{height:20px;width:20px;border:1px solid #FF5500; text-align:center;vertical-align:middle;color:#FF0000;font-weight:bold;background:#FFEEE5;display:inline-block;}
</style>
<div class="center">您的位置：<a href="__APP__">首页</a>-><a href="__GROUP__/Member"><font color="#317ee7">会员中心</font></a></div>
<div class="center">
   <div class="left">
      <include file="left"/>
   </div>

   <div class="main">
	   <div class="history">
	     <table border="0" width="100%" id="table1">
			<tr>
				<td class="ht01" width="100px" align="center">收货人</td>
				<td class="ht01" width="100px" align="center">电话</td>
				<td class="ht01" width="100px" align="center">手机</td>
				<td class="ht01" align="center">收货地址</td>
				<td class="ht01" width="100px" align="center">邮编</td>
				<td class="ht01" width="100px" align="center">删除</td>
			</tr>
<volist name="addr" id="addr">
			<tr id="list">
				<td class="ht02" align="center" width="100px">{$addr.name}</td>
				<td class="ht02" width="100px" align="center">{$addr.tel}</td>
				<td class="ht02" width="100px" align="center">{$addr.mobile}</td>
				<td class="ht02" align="center">{$addr.address}</td>
				<td class="ht02" width="100px" align="center">{$addr.zip}</td>
				<td class="ht02" width="100px" align="center"><a href="javascript:deladdr({$addr.addr_id});"><img src="__APP__/statics/btn-close.gif"></a></td>
			</tr>
</volist>
		</table>
	   </div>
<if condition="$addr eq ''">
	   <div class="history" style="margin-top:20px;text-align:center">没有使用过的地址记录</div>
</if>
   </div>
</div>

<script>
function deladdr(t){
          if(confirm('你确认要删除此地址吗？')) {
				$.ajax({
				    type:"GET",
					url:"__URL__/myaddress/?action=del",
					dataType:"html",
					data:{addr_id:t},
					success:function(data){
					    jSuccess("<strong>移除成功！</strong>",{TimeShown : 500,VerticalPosition : 'center',HorizontalPosition : 'center',onClosed:function(){window.parent.location.reload();}})
					}
				})
		   }    
}
</script>

<link rel="stylesheet" type="text/css" href="__APP__/statics/css/jNotify.jquery.css" />
<script type="text/javascript" src="__APP__/statics/jNotify.jquery.js"></script>
<div style="clear:both"></div>
<br>
<include file="Public:footersmall"/>